/**
 *
 * 用户管理模块
 *
 * @author leon
 * @createTime '2018/8/16'
 */


const Main = () => import( '@/views/main');

const OrderList = () => import('@/views/order/list');
const CartList = () => import('@/views/order/cart');
export default [
    {
        path: '/order',
        name: 'order',
        meta: { name: '订单管理', unfold: true},
        component: Main,
        children: [
            {
                path: 'list',
                name: 'orderList',
                component: OrderList,
                meta: {
                    requireAuth: true,
                    name: '订单列表'
                }
            },
            {
                path: 'cart',
                name: 'cartList',
                component: CartList,
                meta: {
                    requireAuth: true,
                    name: '购物车'
                }
            }
        ],
        redirect: {
            name: 'orderList'
        }
    }
]
